]> dgit.raspbian.org Git - gnome-shell.git/commit
search: Catch async function errors and log them unless cancelled
authorMarco Trevisan (Treviño) <mail@3v1n0.net>
Mon, 16 Feb 2026 20:29:10 +0000 (21:29 +0100)
committerMarge Bot <marge-bot@gnome.org>
Tue, 17 Feb 2026 14:00:14 +0000 (14:00 +0000)
commit37d5b68f3d3fd828e3eabeaa3d9c06376c8c69d6
tree4072bcbbe87351ff1f31b5b618ba2115ac179501
parenta02b628e07216a30ef7266b3f123ee663f929abc
search: Catch async function errors and log them unless cancelled

In case a search function fails, we are not providing clear errors, thus
trace the errors when calling async functions from sync ones and when
catching errors.

Note that at the moment is unlikely to receive any cancelled error here,
since the remote search providers calls handle the error already, but we
still use `logErrorUnlessCancelled` instead of `logError` to be more future
proof or to cover the case in which some extension may throw a cancelled
error.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/4080>
js/ui/search.js